
package {
    import flash.text.AntiAliasType;
    import flash.text.TextField;
    import flash.text.TextFormat;    

    /**
     * @author Christian Rauh
     */
    public class LabelParticle extends Particle {

        public function LabelParticle(label:String) {
            super();
            var tf : TextField = new TextField();
			tf.embedFonts = true;
			tf.selectable = false;
			tf.mouseEnabled = false;
			tf.antiAliasType = AntiAliasType.ADVANCED;
			tf.defaultTextFormat = new TextFormat(Main.FONT, 12, 0xffffff);			
            tf.text = label;
            tf.alpha = .7;
            addChild(tf);
        }
    }
}
